package cn.edu.ptu.jobfairs.basic.dto.response;

import cn.edu.ptu.jobfairs.basic.common.User;
import lombok.Data;

/**
 * Created by Lin Chenxiao on 2020-08-25
 **/
@Data
public class UserDTO {
    private Integer id;
    private String number;
    private String name;
    private String title;
    private String phone;
    private Integer status;

    public UserDTO(User user) {
        if (user != null) {
            id = user.getId();
            number = user.getNumber();
            name = user.getName();
            title = user.getTitle();
            phone = user.getPhone();
            status = user.getStatus();
        }
    }
}
